import request from '@/utils/request'

// 查询排列5方法2预测列表
export function listTwo(query) {
  return request({
    url: '/caipiao/two/list',
    method: 'get',
    params: query
  })
}

// 查询排列5方法2预测详细
export function getTwo(id) {
  return request({
    url: '/caipiao/two/' + id,
    method: 'get'
  })
}

// 新增排列5方法2预测
export function addTwo(data) {
  return request({
    url: '/caipiao/two',
    method: 'post',
    data: data
  })
}

// 修改排列5方法2预测
export function updateTwo(data) {
  return request({
    url: '/caipiao/two',
    method: 'put',
    data: data
  })
}

// 删除排列5方法2预测
export function delTwo(id) {
  return request({
    url: '/caipiao/two/' + id,
    method: 'delete'
  })
}

// 修改排列5方法预测
export function generateCode(data) {
  return request({
    url: '/caipiao/two/generateCode',
    method: 'get',
    params: data
  })
}
// 修改排列5方法预测
export function checkCode(data) {
  return request({
    url: '/caipiao/two/checkCode',
    method: 'get',
    params: data
  })
}
